//
//  TopTabBar.h
//  IntelligenceCommunity
//
//  Created by zhangpei on 15/12/28.
//  Copyright © 2015年 zhangpei. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol TopTabBarDelegate <NSObject>

- (void)topTabBarClickAtIndex:(NSInteger)index withInfo:(NSDictionary *)dict;

@end


@interface TopTabBar : UIView

@property(nonatomic, assign) id <TopTabBarDelegate> topTabBarDelegate;
@property(nonatomic, strong) UIScrollView *scroll;
@property(nonatomic, strong) UIImage *selectedBackgroundImage;
@property(nonatomic, strong) UIColor *selectedTitleColor;
@property(nonatomic, assign) NSInteger currentSelectedIndex;
@property(nonatomic, assign) NSInteger type;

@property(nonatomic, strong) NSMutableArray *barButtons;
@property(nonatomic, strong) NSMutableArray *dotImageViews;


- (void)loadBarButtonsWithInfos:(NSArray *)infos withKey:(NSString *)key withSameWidth:(BOOL)isSame withHideFirst:(BOOL)isHide;

- (void)selectedBarButtonAtIndex:(NSInteger)index;

@end
